<%@ page contentType="application/msexcel" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
response.setHeader("Content-disposition","inline; filename=productList.xls");
%>
<html>
<head>
<title>商品信息列表</title>
<s:if test="#request.products==null">
  <jsp:forward page="show_blank.jsp"/>
</s:if>
</head>
<body>
   <table>
    <tr style="font-size: 25px; background-color: aqua;" align="center">
	    <td>产品名称</td>
	    <td>规格</td>
	    <td>单位</td>
	    <td>价格</td>
	    <td>库存</td>
	    <td>其它</td>
    </tr>
  <s:iterator value="#request.products">
  <tr class="tigger" align="center" onmouseover="trOver(this)" onmouseout="trOut(this)" onclick="">
    <td><s:property value="pdProductname"/></td>
    <td><s:property value="DDLByTypeNorm.typeValue"/></td>
    <td><s:property value="DDLByTypeUnit.typeValue"/></td>
    <td><s:property value="pdPrice"/></td>
    <td><s:property value="pdAllcount"/></td>
    <td><s:property value="pdOther"/></td>
  </tr>
  </s:iterator>
   </table>
</body>
</html>